package com.javaranger.jvm;

import java.util.ArrayList;
import java.util.List;
/**
 * 
 * 
 * VM Args: -Xms20M -Xmx20M -XX:+HeapDumpOnOutOfMemoryError
 * @author tao.wang
 *
 */
public class HeapOutOfMemoryTest {
	

	public static void main(String[] args) {
		List<Object> list = new ArrayList<Object>();
		while (true) {
			list.add(new HeapOutOfMemoryTest());
		}
				
	}
}
